package pers.wy.sell.exception;

import pers.wy.sell.enums.ResultEnum;

/**
 * @Author: 月落
 * @Date: Created in 20:36 2018/9/5
 */
public class SellException extends RuntimeException {

    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public SellException(Integer code, String message) {
        super(message);
        this.code = code;
    }

}
